package cc.mrbird.febs.accounting.service;

import cc.mrbird.febs.accounting.entity.StandardMain;

import cc.mrbird.febs.common.entity.QueryRequest;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * 标准主科目表 Service接口
 *
 * @author baoyinlei
 * @date 2021-11-29 16:39:31
 */
public interface IStandardMainService extends IService<StandardMain> {
    /**
     * 查询（分页）
     *
     * @param request QueryRequest
     * @param standardMain standardMain
     * @return IPage<StandardMain>
     */
    IPage<StandardMain> findStandardMains(QueryRequest request, StandardMain standardMain);

    /**
     * 查询（所有）
     *
     * @param standardMain standardMain
     * @return List<StandardMain>
     */
    List<StandardMain> findStandardMains(StandardMain standardMain);

    /**
     * 新增
     *
     * @param standardMain standardMain
     */
    void createStandardMain(StandardMain standardMain);

    /**
     * 修改
     *
     * @param standardMain standardMain
     */
    void updateStandardMain(StandardMain standardMain);

    /**
     * 删除
     *
     * @param standardMain standardMain
     */
    void deleteStandardMain(StandardMain standardMain);

    List<StandardMain> queryStandardMains();

    String getCodeByName(String name);
}
